package org.example.mapper;

import org.apache.ibatis.annotations.Param;
import org.example.domain.dto.ErpDepotItemDTO;
import org.example.domain.po.ErpDepotItem;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.example.domain.vo.ErpDepotItemVO;

import java.util.List;

/**
* @author 24059
* @description 针对表【erp_depot_item(单据子表)】的数据库操作Mapper
* @createDate 2024-10-18 15:32:31
* @Entity org.example.domain/po.ErpDepotItem
*/
public interface ErpDepotItemMapper extends BaseMapper<ErpDepotItem> {
    int insert(ErpDepotItem erpDepotItem);

    List<ErpDepotItemVO> look(Integer id);
    int insert(ErpDepotItemDTO erpDepotItem);
    int updateDepotItem(@Param("erpDepotItem") ErpDepotItemDTO erpDepotItem, @Param("headerId") Long headerId);
    List<ErpDepotItem> selectByPrimaryKey(@Param("headerId") Long headerId);

    Long lookByHeaderherdId(Long headerId);

    Long lookByHeaderlinkId(@Param("linkId") List<Long> linkId);
    List<ErpDepotItem>lookByitemid(@Param("headerId") Long headerId);
    List<Long> lookByitemidnumvber(@Param("number") String number);
    int insertdepot(ErpDepotItemDTO erpDepotItem);

    List<ErpDepotItemVO> findById(@Param("id") Integer id,@Param("tenantId") Long tenantId);

    int deleteItem (@Param("headerId") Long headerId);
    List<ErpDepotItemVO> findItems(Long headerId);
    List<ErpDepotItemVO> findItem(Long headerId);
}




